package CACA;

public class Attribute {
	String name;
	String [] nominals;
	
	public String getName(){
		return name;
	}
	public Attribute(String name, String[] nominals)
	{
		this.name = name;
		this.nominals = nominals;
	}
	public int getNominalIndex(String nom)
	{
		for (int i = 0; i < nominals.length; i++) {
			if(nom.equalsIgnoreCase(nominals[i]))
				return i;
		}
		return -1;
	}
}
